package online.longzipeng.cinemasys.vo.movie;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import online.longzipeng.cinemasys.vo.query.BaseQueryVO;

import java.time.LocalDateTime;

/**
 * @author lzp
 * @date 2021/4/28 21:00
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "电影查询对象",description = "请求参数类")
public class MovieQueryVO extends BaseQueryVO {

    @ApiModelProperty(value = "名称",example = "杀死比尔",required = false)
    private String name;

    @ApiModelProperty(value = "导演",example = "小龙",required = false)
    private String director;

    @ApiModelProperty(value = "语言",example = "国语",required = false)
    private String language;

    @ApiModelProperty(value = "演员",example = "小龙",required = false)
    private String actor;

    @ApiModelProperty(value = "一级分类id",example = "1",required = false)
    private Long levelOneTypeId;

    @ApiModelProperty(value = "二级分类id",example = "1",required = false)
    private Long levelTwoTypeId;

    @ApiModelProperty(value = "描述",example = "1",required = false)
    private String description;

    @ApiModelProperty(value = "上映开始时间",example = "1",required = false)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startReleaseTime;

    @ApiModelProperty(value = "上映结束时间",example = "1",required = false)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endReleaseTime;

    @ApiModelProperty(value = "影片持续时间",example = "1",required = false)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private Integer duration;

    @ApiModelProperty(value = "备注",example = "1",required = false)
    private String note;

}
